package com.xjscrm.server.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xjscrm.common.entity.GroupPullJobMsg;
import com.xjscrm.server.dto.grouppulljobmsg.GroupPullJobMsgQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

@Repository
public interface GroupPullJobMsgMapper {
    int deleteById(@Param("id") Long id);

    int insert(GroupPullJobMsg record);

    int insertSelective(GroupPullJobMsg record);

    GroupPullJobMsg selectById(@Param("id") Long id);

    int updateByIdSelective(GroupPullJobMsg record);

    int updateById(GroupPullJobMsg record);

    int updateStatusById(GroupPullJobMsg record);

    /**
     * 分页查询
     *
     * @param page
     * @param query
     * @return
     */
    ArrayList<GroupPullJobMsg> findByList(Page<GroupPullJobMsg> page, @Param("query") GroupPullJobMsgQuery query);

    /**
     * 分页查询
     *
     * @param query
     * @param query
     * @return
     */
    Integer findCount(@Param("query") GroupPullJobMsgQuery query);
}